package com.climber.android.commonsdk.event

import android.os.Bundle
import com.climber.android.commonsdk.api.APIErrorToast

/**
 * Created by Mikes at 2019-06-26 14:33
 */
class CommonBusEvent{
    /**
     * APP 从后台转前台事件
     */
    class AppComeForegroundEvent

    /**
     * 需要登录获取Token
     */
    class NeedTokenEvent(val postCardPath : String?=null, val postCardBundle : Bundle?=null)
    /**
     * Token过期，需要重新登录
     */
    class TokenExpiredEvent

    /**
     * 显示ResultDialog
     */
    class ShowMessageEvent(var type: StatusDialogType, var msg: String? = null, val msgId: Int? = null)

    /**
     * loading
     */
    class ShowLoadingEvent(var show: Boolean)

    class ShowAPIErrorToastEvent(val apiErrorToast : APIErrorToast)

    /**
     * 登入登出事件
     */
    class TokenChangeEvent(val authorizated : Boolean)


    /**
     * 新消息数量事件，更新APP 消息TAB角标
     */
    class UnreadMsgCountEvent(val unreadCount : Int)
    // 选择商城子Tab
    class ChooseMallChildTabEvent(val childTabName : String)
    // 选择社区子Tab
    class ChooseSocialChildTabEvent(val childTabName : String)
    // 选择消息子Tab
    class ChooseMessageChildTabEvent(val childTabName : String)
}